package DAY03;

import java.util.Arrays;


public class DEMO02 {
	public static void main(String[] args) {
		int arr[] = new int[] {19,28,37,46,50};
		System.out.println(Arrays.toString(ying(arr)));
	}
	
	public static int[] ying(int arr[]) {
		for (int i = 0; i < arr.length/2; i++) {
			int temp = arr[i];
			arr[i]=arr[arr.length-(i+1)];
			arr[arr.length-(i+1)]=temp;
			
			
		}
		
		
		return arr;
	}
}




